﻿using WD.Core.Cache;
using WD.Framework.Contract;

namespace WD.Web.MVC.Common
{
    public class WebUserContext : UserContext
    {
        public WebUserContext()
            : base(WebCookieContext.Current, 账户凭证类型.管理员)
        {
        }

        public WebUserContext(IAuthCookie authCookie)
            : base(authCookie, 账户凭证类型.管理员)
        {
        }

        public static WebUserContext Current
        {
            get
            {
                return CacheHelper.GetItem<WebUserContext>();
            }
        }
    }
}
